package org.sfx.rich

import org.sfx.util.Interpreter._
import scala.tools.nsc.interpreter.Results._

class RichManifest[T](underlying: Manifest[T]) {
  def <::<[U](that: Manifest[U]): Boolean = {
    interpret("val _moo_ : " + that + " = null.asInstanceOf[" + underlying + "]") == Success
  }
}
